#ifndef LEDARRAY_H
#define LEDARRAY_H

#include <QWidget>
#include "LedControl.h"
#include <QGridLayout>
#include <QVector>
#include <QLabel>

class LedControl;

class LedArray : public QWidget
{
    Q_OBJECT
public:
    explicit LedArray(uchar num,QStringList &strlist,bool isvertical=false,QWidget *parent = 0);
    void set_one_value(uchar num, bool onoroff);
    void set_array_value(int value);

signals:
    
public slots:
private:
 QGridLayout*  gridlayout;
 QVector< LedControl* > ledvector;
 QList < QLabel* > labellist;
 QStringList namelist;
 uchar arraynumber;
};

#endif // LEDARRAY_H
